[% USE date %]
[% forum.forum_url = c.req.base _ forum.forum_url %]
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>[% forum.name %]</title>
<link>[% forum.forum_url %]</link>
<description>[% forum.description %]</description>
<pubDate>[% date.format(date.now, '%Y-%m-%dT%H:%M:%S+00:00') %]</pubDate>
<lastBuildDate>[% date.format(date.now, '%Y-%m-%dT%H:%M:%S+00:00') %]</lastBuildDate>
<generator>Foorum RSS Generator</generator>
[% FOREACH t IN topics %]
<item>
<title>[% t.title %]</title>
<link>[% forum.forum_url _ '/' _ t.topic_id %]</link>
<description><![CDATA[
[% t.text %]
]]></description>
<guid isPermaLink="true">[% forum.forum_url _ '/' _ t.topic_id %]</guid>
<pubDate>[% t.last_update_date.replace('\s+', 'T') %]</pubDate>
</item>
[% END %]
</channel>
</rss>